{% extends "base.html" %}

{% block title %}Flask 练习 - 主页{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>欢迎，{% if current_user.is_authenticated %}{{ current_user.username }}{% else %}陌生人{% endif %}！</h1>
    <p>访问时间：{{ moment(current_time).format("LLL") }}</p>
    <p>距离现在：{{ moment(current_time).fromNow(refresh=True) }}</p>
</div>
{% endblock %}